package com.book.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.book.dao.DonateInsertMapper;
import com.book.dao.DonateListMapper;
import com.book.dao.DonateTargetMapper;
import com.book.domain.DonateInsert;
import com.book.domain.DonateTarget;

@Service("donateTargetService")
public class DonateTargetServiceImpl implements DonateTargetService {
	
	@Autowired
	private DonateTargetMapper donateTargetMapper;
	@Autowired
	private DonateInsertMapper donateInsertMapper;
	
	@Override
	public List<DonateTarget> getMember() {
		//System.out.println("Service");
		return donateTargetMapper.getMember();
	}
	@Override
	public void insertPatron(DonateInsert donateInsert) {
		//System.out.println("Service");
		donateInsertMapper.insertPatron(donateInsert);
	}

}
